package com.lp.business.model;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.iframework.support.spring.hibernate.model.BaseHibernateModelSupport;

import com.ibm.icu.math.BigDecimal;

/**
 * 收益信息模型
 * 
 * @author lp
 * @date 2018-08-08 18:23:41
 */
@Entity
@Table(name = "income")
@org.hibernate.annotations.Table(appliesTo = "income", comment = "收益信息模型")
public class Income extends BaseHibernateModelSupport {
	private static final long serialVersionUID = 1L;
	
	/** 摘要 */
	@Column(columnDefinition = "varchar(32)  comment '摘要'")
	private String summary;
	
	
	/** 收益人Id */
	@Column(columnDefinition = "varchar(32)  comment '收益人Id'")
	private String memberId;
	
	/** 收益人 */
	@ManyToOne(cascade = { CascadeType.MERGE }, fetch = FetchType.LAZY)
	@JoinColumn(name = "memberId", nullable = true, insertable = false, updatable = false)
	private Member member;
	
	/** 收益费用 */
	@Column(columnDefinition = "DECIMAL(20,2) comment '收益费用'")
	private BigDecimal money;
	
	/** 是否提取 */
	@Column(columnDefinition = "varchar(2)  comment '是否提取'")
	private String isDraw;

	public String getSummary() {
		return summary;
	}

	public void setSummary(String summary) {
		this.summary = summary;
	}

	public String getMemberId() {
		return memberId;
	}

	public void setMemberId(String memberId) {
		this.memberId = memberId;
	}

	public Member getMember() {
		return member;
	}

	public void setMember(Member member) {
		this.member = member;
	}

	public BigDecimal getMoney() {
		return money;
	}

	public void setMoney(BigDecimal money) {
		this.money = money;
	}

	public String getIsDraw() {
		return isDraw;
	}

	public void setIsDraw(String isDraw) {
		this.isDraw = isDraw;
	}

}
